as.factor
{base}
Coerce a vector to factor
which
{base}
return indexes of TRUE entries of a logical vector
cor
{stats}
Calculate Correlation Matrix
addmargins
{stats}
Puts Arbitrary Margins on Multidimensional Tables or Arrays
barplot
{graphics}
Plot a simple bar plot
as.numeric
{base}
Coerce a vector to numeric
chisq.test
{stats}
Chi-Squared test (e.g. for cross-tabulations)
cor.test
{stats}
Test for Association/Correlation Between Paired Samples
prop.table
{base}
Transform frequency table into table of proportions
tapply
{base}
Create statistical summaries by group based on the levels of one or several factors
par
{graphics}
Set parameters of the plotting device
The end!